<!DOCTYPE html>
<html lang="en"  onclick="alert('html')">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		div{
			padding: 100px;
		}
	</style>
	<script type="text/javascript"></script>
</head>
<body onclick="alert('body')">
	<div style="background: #ccc" onclick="alert(this.style.background);">
		<div  style="background: green" onclick="alert(this.style.background);">
			<div  style="background: red" onclick="alert(this.style.background);"></div>
		</div>
	</div>
</body>
</html>